package main

import (
	"rpctest/service"

	"github.com/smallnest/rpcx/server"
)

// rpc服务器注册
func main() {
	s := server.NewServer()
	s.RegisterName("xiaoxu", new(service.Calculate), "")
	s.Serve("tcp", ":8972")
}
